package com.situ.controller;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Data
@ConfigurationProperties(prefix ="name")
public class UserController {

    //@Value("${name.uname}")
    private String uname;

    @GetMapping("/show")
    public String show(){
        System.out.println(11);
        return uname;
    }
}
